﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace Web
{
    public partial class Site1 : System.Web.UI.MasterPage
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                if (Session["AName"]!=null)
                {
                    Label5.Text = Session["AName"].ToString();
                }
                else
                {
                    
                    Response.Write("<script>alert('登录失败重新登录！')</script>");
                    Response.Redirect("WebForm3.aspx");
                }
               
            }
        }

   

        protected void Button1_Click(object sender, EventArgs e)
        {

            Response.Redirect("UserInfor.aspx");


        }

        protected void ImageButton1_Click(object sender, ImageClickEventArgs e)
        {
            Response.Redirect("WebForm3.aspx");
        }
    }
}